#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);

    //QListWidgetItem *item = new QListWidgetItem("窗前明月光");
    //ui->listWidget->addItem(item);
    QStringList list;
    list <<"床前明月光" <<"疑是地上霜"<<"举头望明月"<<"低头思故乡";
    ui->listWidget->addItems(list);
}

Widget::~Widget()
{
    delete ui;
}
